go to previous page   go to home page   hear noise   go to next page

Answer:

A bird came down the walkHe did not know I saw;He bit an angle-worm in halvesAnd ate the fellow, raw.

To make this output more readable, put a space at the end of each string literal in the program.


Another Example

class Haiku
{
  public static void main ( String[] args )
  {
    System.out.println(  );
    
    System.out.println(  );
    
    System.out.println(  );
  }
}

Now say that your assignment is to create a program that writes the following to the computer monitor:

On a withered branch
A crow has just alighted:
Nightfall in autumn.

Above is the program that is to perform this task, but with some blank boxes for you to fill in.

The extra lines between program statements don't hurt. Blank lines often make a program easier to read.


QUESTION 13:

Fill in the blanks of the program. (You can do this using your mouse with copy and paste.)